package com.singfan.core.dao.database.model;

import com.singfan.common.db.annotation.Primarykey;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单信息（暂不散表，但id要能支持散表）
 * Author: hansonghe
 * Date: 2015-08-19 12:12
 * Desc:
 */
public class Orders {
    //主键
    @Primarykey
    private long id;
    //预约码
    private String reservationCode;
    //订单icon
    private String orderIcon;
    //订单名称
    private String orderName;
    //用户id
    private long customerId;
    //用户昵称
    private String customerName;
    //用户性别
    private int customerGender;
    //用户手机号
    private String customerPhoneNumber;
    //用户手机类型
    private String customerPhoneType;
    //发型师id
    private long barberId;
    //发型师昵称
    private String barberName;
    //发型师手机号
    private String barberPhoneNumber;
    //门店id
    private long shopId;
    //门店名称（总店+分店）
    private String shopName;
    //门店地址
    private String shopAddress;
    //经度
    private BigDecimal longitude;
    //纬度
    private BigDecimal latitude;
    //门店联系电话
    private String shopPhone;
    //用户所在城市id
    private int cityId;
    //订单类型（理发、美容、美妆等）
    private int orderType;
    //支付渠道类型（1.支付宝 2.微信）
    private int payChannelType;
    //支付渠道的流水号
    private String payChannelSerialNumber;
    //原价
    private int originalPrice;
    //价钱
    private int price;
    //服务内容（下单时所有相关数据的快照，json格式）
    private String serviceContext;
    //预约日期
    private int appointmentDay;
    //预约时间点
    private int appointmentClock;
    //到店时间
    private Date arrivalTime;
    //到店的月份
    private int arrivalMonth;
    //订单状态
    private int status;
    //是否投诉
    private boolean complaints;
    //星级评价
    private int commentStar;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getReservationCode() {
        return reservationCode;
    }

    public void setReservationCode(String reservationCode) {
        this.reservationCode = reservationCode;
    }

    public String getOrderIcon() {
        return orderIcon;
    }

    public void setOrderIcon(String orderIcon) {
        this.orderIcon = orderIcon;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(long customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public int getCustomerGender() {
        return customerGender;
    }

    public void setCustomerGender(int customerGender) {
        this.customerGender = customerGender;
    }

    public String getCustomerPhoneNumber() {
        return customerPhoneNumber;
    }

    public void setCustomerPhoneNumber(String customerPhoneNumber) {
        this.customerPhoneNumber = customerPhoneNumber;
    }

    public String getCustomerPhoneType() {
        return customerPhoneType;
    }

    public void setCustomerPhoneType(String customerPhoneType) {
        this.customerPhoneType = customerPhoneType;
    }

    public long getBarberId() {
        return barberId;
    }

    public void setBarberId(long barberId) {
        this.barberId = barberId;
    }

    public String getBarberName() {
        return barberName;
    }

    public void setBarberName(String barberName) {
        this.barberName = barberName;
    }

    public String getBarberPhoneNumber() {
        return barberPhoneNumber;
    }

    public void setBarberPhoneNumber(String barberPhoneNumber) {
        this.barberPhoneNumber = barberPhoneNumber;
    }

    public long getShopId() {
        return shopId;
    }

    public void setShopId(long shopId) {
        this.shopId = shopId;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getShopAddress() {
        return shopAddress;
    }

    public void setShopAddress(String shopAddress) {
        this.shopAddress = shopAddress;
    }

    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    public String getShopPhone() {
        return shopPhone;
    }

    public void setShopPhone(String shopPhone) {
        this.shopPhone = shopPhone;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public int getOrderType() {
        return orderType;
    }

    public void setOrderType(int orderType) {
        this.orderType = orderType;
    }

    public int getPayChannelType() {
        return payChannelType;
    }

    public void setPayChannelType(int payChannelType) {
        this.payChannelType = payChannelType;
    }

    public String getPayChannelSerialNumber() {
        return payChannelSerialNumber;
    }

    public void setPayChannelSerialNumber(String payChannelSerialNumber) {
        this.payChannelSerialNumber = payChannelSerialNumber;
    }

    public int getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(int originalPrice) {
        this.originalPrice = originalPrice;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getServiceContext() {
        return serviceContext;
    }

    public void setServiceContext(String serviceContext) {
        this.serviceContext = serviceContext;
    }

    public int getAppointmentDay() {
        return appointmentDay;
    }

    public void setAppointmentDay(int appointmentDay) {
        this.appointmentDay = appointmentDay;
    }

    public int getAppointmentClock() {
        return appointmentClock;
    }

    public void setAppointmentClock(int appointmentClock) {
        this.appointmentClock = appointmentClock;
    }

    public Date getArrivalTime() {
        return arrivalTime;
    }

    public void setArrivalTime(Date arrivalTime) {
        this.arrivalTime = arrivalTime;
    }

    public int getArrivalMonth() {
        return arrivalMonth;
    }

    public void setArrivalMonth(int arrivalMonth) {
        this.arrivalMonth = arrivalMonth;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public boolean isComplaints() {
        return complaints;
    }

    public void setComplaints(boolean complaints) {
        this.complaints = complaints;
    }

    public int getCommentStar() {
        return commentStar;
    }

    public void setCommentStar(int commentStar) {
        this.commentStar = commentStar;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}